<%-- 
    Document   : historialClinico
    Created on : 16/08/2013, 06:45:17 PM
    Author     : Alan Gonzalez
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<jsp:include page = "metadatos.jsp" flush = "True" />
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h2>Historiales Clinicos del Paciente</h2>

        <fieldset>
            <legend>OPCIONES</legend>
            <input type="button" value="NUEVO HISTORIAL" onclick="popup('../OpticaAdmin?action=nuevoExpediente&index=1', 800, 500);" />
            <input type="button" value="REGRESAR" onclick="location.href = '../OpticaAdmin?action=exped'"/>
        </fieldset>

        <fieldset>
            <legend> HISTORIALES CLINICIOS DEL PACIENTE</legend>
            <table width="700" border="1">
                <tr>
                    <td>Expediente ID</td>
                    <td>Fecha de Creacion Expediente </td>
                    <td>Abrir</td>
                    <td>ELIMINAR EXPEDIENTE</td>
                </tr>
                <c:forEach items="${principalOptica.hitorialClinico}" var="regs">
                    <tr>
                        <td>Hist. Clin. ID <c:out value="${regs.id}"/></td>
                        <td><c:out value="${regs.fechaCreacion}"/></td>
                        <td> <input type="button" value="Abrir" onclick="popup('../OpticaAdmin?action=abrir&id=<c:out value="${regs.id}"/>', 1000, 500);" /> </td>
                        <td><div align="center"><img src="../resources/delete-icon.png" width="20" height="20" onclick="location.href = '../OpticaAdmin?action=borrarHistorial&id=<c:out value="${regs.id}"/>'"/></div></td>
                    </tr>
                </c:forEach>
            </table>
        </fieldset>
    </body>
</html>
<jsp:include page = "pie.jsp" flush = "True" />